﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FieldPlusList.aspx.cs" Inherits="Manage_Cms_FieldPlusList" %>

<%@ Import Namespace="KeRui.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <form id="form1">
        <div class="column">
            <div class="columntitle" style="text-align: right; height: 20px; vertical-align: middle;">
                <span style="float: left">对应字段管理</span>
            </div>
            <table cellspacing="1" cellpadding="1" rules="all" align="center" border="0" id="MyDataGrid"
                style="border-width: 0px; width: 100%;">
                <tr class="summary-title" align="center">
                    <td>
                        附加字段属性类别</td>
                    <td>
                        附加字段属性属性值</td>
                    <td>
                        操作</td>
                </tr>
                <%
                    foreach (System.Data.DataRow rowClass in dtClasses.Rows)
                    {
                %>
                <tr class="tdbg" onmouseover="this.className='tdbg-dark';" align="center" onmouseout="this.className='tdbg';"
                    style="height: 23px;">
                    <td class="th" align="center" width="200px">
                        <%=rowClass["ClassName"]%>
                    </td>
                    <td align="center">
                        <%=BuildAttrValue((string)rowClass["ClassName"])%>
                    </td>
                    <td>
                        <a href="FieldPlusItem.aspx?act=modify&class=<%=rowClass["ClassName"]%>&values=<%=BuildAttrValue((string)rowClass["ClassName"])%>">修改</a>&nbsp;<a
                            href="javascript:void(0)" onclick='if(confirm("确定删除该字段附加属性？")){window.location.href="FieldPlusList.aspx?act=delete&class=<%=rowClass["ClassName"]%>"}'>删除</a>
                    </td>
                </tr>
                <%
                    } %>
            </table>
        </div>
        <br />
        <input type="button" id="btnadd" name="btnadd" value="添加附加字段" onclick="window.location.href='FieldPlusItem.aspx?act=add'"
            class="button" />
    </form>
</body>
</html>
